import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("platform_config", { schema: "base-common" })
export class PlatformConfig {
  @PrimaryGeneratedColumn({ type: "tinyint", name: "id", unsigned: true })
  id: number;

  @Column("varchar", { name: "static_url", comment: "静态资源url", length: 50 })
  staticUrl: string;

  @Column("json", { name: "wechat", nullable: true })
  wechat: object | null;

  @Column("json", { name: "alipay", nullable: true })
  alipay: object | null;

  @Column("json", { name: "alicloud", nullable: true })
  alicloud: object | null;
}
